Part Number Hot Search : 
M74HC07 AN5125 AD8625 2907A 80N6F 1N6124A 332V15M SMAJ5300
Product Description
Full Text Search
 

To Download PXAG37 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
   

xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts product data replaces datasheet xa-g3 of 2001 jun 25 2002 mar 25 integrated circuits
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 i family description 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . specific features of the xa-g37 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ordering information 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . pin configurations 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44-pin plcc package 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44-pin lqfp package 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . logic symbol 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . block diagram 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . pin descriptions 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . special function registers 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xa-g37 timer/counters 8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . timer 0 and timer 1 8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . new enhanced mode 0 9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . mode 1 9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . mode 2 9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . mode 3 9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . new timer-overflow toggle output 10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . timer t2 10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . capture mode 10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . auto-reload mode (up or down counter) 10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . baud rate generator mode 11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . programmable clock-out 11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . watchdog timer 13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . watchdog function 13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . watchdog control register (wdcon) 13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . watchdog detailed operation 13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . wdcon register bit definitions 14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . uarts 14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . serial port control register 15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ti flag 15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-bit mode 15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . bypassing double buffering 15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . note regarding older xa-g37 devices 15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . clocking scheme/baud rate generation 16 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . using timer 2 to generate baud rates 16 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . prescaler select for timer clock (tclk) 16 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . uart interrupt scheme 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . error handling, status flags and break detect 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . multiprocessor communications 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . automatic address recognition 17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . i/o port output configuration 19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . external bus 19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . reset 19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . reset options 19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . power reduction modes 19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . interrupts 20 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . absolute maximum ratings 21 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . dc electrical characteristics 21 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ac electrical characteristics 22 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ac electrical characteristics (vdd = 4.5 v to 5.5 v) 22 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ac electrical characteristics (vdd = 2.7 v to 4.5 v) 23 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . eprom characteristics 31 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . security bits 31 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . revision history 34 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 1 2002 mar 25 853-2325 27917 family description the philips semiconductors xa (extended architecture) family of 16-bit single-chip microcontrollers is powerful enough to easily handle the requirements of high performance embedded applications, yet inexpensive enough to compete in the market for high-volume, low-cost applications. the xa family provides an upward compatibility path for 80c51 users who need higher performance and 64k or more of program memory. existing 80c51 code can also easily be translated to run on xa microcontrollers. the performance of the xa architecture supports the comprehensive bit-oriented operations of the 80c51 while incorporating support for multi-tasking operating systems and high-level languages such as c. the speed of the xa architecture, at 10 to 100 times that of the 80c51, gives designers an easy path to truly high performance embedded control. the xa architecture supports: ? upward compatibility with the 80c51 architecture ? 16-bit fully static cpu with a 24-bit program and data address range ? eight 16-bit cpu registers each capable of performing all arithmetic and logic operations as well as acting as memory pointers. operations may also be performed directly to memory. ? both 8-bit and 16-bit cpu registers, each capable of performing all arithmetic and logic operations. ? an enhanced instruction set that includes bit intensive logic operations and fast signed or unsigned 16 16 multiply and 32 / 16 divide ? instruction set tailored for high level language support ? multi-tasking and real-time executives that include up to 32 vectored interrupts, 16 software traps, segmented data memory, and banked registers to support context switching ? low power operation, which is intrinsic to the xa architecture, includes power-down and idle modes. more detailed information on the core is available in the xa user guide. specific features of the xa-g37 ? 20-bit address range, 1 megabyte each program and data space. (note that the xa architecture supports up to 24 bit addresses.) ? 2.7 v to 5.5 v operation ? 32k bytes on-chip eprom program memory ? 512 bytes of on-chip data ram ? three counter/timers with enhanced features (equivalent to 80c51 t0, t1, and t2) ? watchdog timer ? two enhanced uarts ? four 8-bit i/o ports with 4 programmable output configurations ? 44-pin plcc and 44-pin lqfp packages ordering information package type number name description temperature range ( c) version PXAG37kbbd otp 1 lqfp44 plastic low profile quad flat package; 44 leads; body 10 10 1.4 mm 0 to +70 sot389-1 PXAG37kba otp 1 plcc44 plastic leaded chip carrier; 44 leads 0 to +70 sot187-2 PXAG37kfbd otp 1 lqfp44 plastic low profile quad flat package; 44 leads; body 10 10 1.4 mm 40 to +85 sot389-1 PXAG37kfa otp 1 plcc44 plastic leaded chip carrier; 44 leads 40 to +85 sot187-2 note: 1. otp = one time programmable eprom.
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 2 pin configurations 44-pin plcc package plcc 6140 7 17 39 29 18 28 pin function 1v ss 2 p1.0/a0/wrh 3 p1.1/a1 4 p1.2/a2 5 p1.3/a3 6 p1.4/rxd1 7 p1.5/txd1 8 p1.6/t2 9 p1.7/t2ex 10 rst 11 p3.0/rxd0 12 nc 13 p3.1/txd0 14 p3.2/int0 15 p3.3/int1 16 p3.4/t0 17 p3.5/t1/busw 18 p3.6/wr l 19 p3.7/rd 20 xtal2 21 xtal1 22 v ss pin function 23 v dd 24 p2.0/a12d8 25 p2.1/a13d9 26 p2.2/a14d10 27 p2.3/a15d11 28 p2.4/a16d12 29 p2.5/a17d13 30 p2.6/a18d14 31 p2.7/a19d15 32 psen 33 ale/prog 34 nc 35 ea /v pp /wait 36 p0.7/a11d7 37 p0.6/a10d6 38 p0.5/a9d5 39 p0.4/a8d4 40 p0.3/a7d3 41 p0.2/a6d2 42 p0.1/a5d1 43 p0.0/a4d0 44 v dd su00525 44-pin lqfp package lqfp 44 34 1 11 33 23 12 22 pin function 1 p1.5/txd1 2 p1.6/t2 3 p1.7/t2ex 4 rst 5 p3.0/rxd0 6nc 7 p3.1/txd0 8 p3.2/int0 9 p3.3/int1 10 p3.4/t0 11 p3.5/t1/busw 12 p3.6/wrl 13 p3.7/rd 14 xtal2 15 xtal1 16 v ss 17 v dd 18 p2.0/a12d8 19 p2.1/a13d9 20 p2.2/a14d10 21 p2.3/a15d11 22 p2.4/a16/d12 pin function 23 p2.5/a17d13 24 p2.6/a18d14 25 p2.7/a19d15 26 psen 27 ale/prog 28 nc 29 ea /v pp /wait 30 p0.7/a11d7 31 p0.6/a10d6 32 p0.5/a9d5 33 p0.4/a8d4 34 p0.3/a7d3 35 p0.2/a6d2 36 p0.1/a5d1 37 p0.0/a4d0 38 v dd 39 v ss 40 p1.0/a0/wrh 41 p1.1/a1 42 p1.2/a2 43 p1.3/a3 44 p1.4/rxd1 su00580 logic symbol v dd v ss xtal1 xtal2 rst ea /wait t2* t2ex* a3 a2 su00526 a1 a0/wrh port 1 port 2 psen ale port 0 address and data bus address bus port 3 t0 t1/busw wrl rd rxd0 txd0 int0 int1 alternate functions * not available on 40-pin dip package t x d1 r x d1
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 3 block diagram xa cpu core sfr bus 32 kbytes eprom 512 bytes static ram port 0 port 1 port 2 port 3 uart0 uart1 timer 0 & timer 1 timer 2 watchdog timer su01632 program memory bus data bus
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 4 pin descriptions mnemonic pin. no. type name and function mnemonic plcc lqfp type name and function v ss 1, 22 16 i ground: 0 v reference. v dd 23, 44 17 i power supply: this is the power supply voltage for normal, idle, and power down operation. p0.0 p0.7 4336 3730 i/o port 0: port 0 is an 8-bit i/o port with a user-configurable output type. port 0 latches have 1s written to them and are configured in the quasi-bidirectional mode during reset. the operation of port 0 pins as inputs and outputs depends upon the port configuration selected. each port pin is configured independently. refer to the section on i/o port configuration and the dc electrical characteristics for details. when the external program/data bus is used, port 0 becomes the multiplexed low data/instruction byte and address lines 4 through 11. p1.0 p1.7 29 4044, 13 i/o port 1: port 1 is an 8-bit i/o port with a user-configurable output type. port 1 latches have 1s written to them and are configured in the quasi-bidirectional mode during reset. the operation of port 1 pins as inputs and outputs depends upon the port configuration selected. each port pin is configured independently. refer to the section on i/o port configuration and the dc electrical characteristics for details. port 1 also provides special functions as described below. 2 40 o a0/wrh : address bit 0 of the external address bus when the external data bus is configured for an 8 bit width. when the external data bus is configured for a 16 bit width, this pin becomes the high byte write strobe. 3 41 o a1: address bit 1 of the external address bus. 4 42 o a2: address bit 2 of the external address bus. 5 43 o a3: address bit 3 of the external address bus. 6 44 i rxd1 (p1.4): receiver input for serial port 1. 7 1 o txd1 (p1.5): transmitter output for serial port 1. 8 2 i/o t2 (p1.6): timer/counter 2 external count input/clockout. 9 3 i t2ex (p1.7): timer/counter 2 reload/capture/direction control p2.0 p2.7 2431 1825 i/o port 2: port 2 is an 8-bit i/o port with a user-configurable output type. port 2 latches have 1s written to them and are configured in the quasi-bidirectional mode during reset. the operation of port 2 pins as inputs and outputs depends upon the port configuration selected. each port pin is configured independently. refer to the section on i/o port configuration and the dc electrical characteristics for details. when the external program/data bus is used in 16-bit mode, port 2 becomes the multiplexed high data/instruction byte and address lines 12 through 19. when the external program/data bus is used in 8-bit mode, the number of address lines that appear on port 2 is user programmable. p3.0 p3.7 11, 1319 5, 713 i/o port 3: port 3 is an 8-bit i/o port with a user configurable output type. port 3 latches have 1s written to them and are configured in the quasi-bidirectional mode during reset. the operation of port 3 pins as inputs and outputs depends upon the port configuration selected. each port pin is configured independently. refer to the section on i/o port configuration and the dc electrical characteristics for details. port 3 also provides various special functions as described below. 11 5 i rxd0 (p3.0): receiver input for serial port 0. 13 7 o txd0 (p3.1): transmitter output for serial port 0. 14 8 i int0 (p3.2): external interrupt 0 input. 15 9 i int1 (p3.3): external interrupt 1 input. 16 10 i/o t0 (p3.4): timer 0 external input, or timer 0 overflow output. 17 11 i/o t1/busw (p3.5): timer 1 external input, or timer 1 overflow output. the value on this pin is latched as the external reset input is released and defines the default external data bus width (busw). 0 = 8-bit bus and 1 = 16-bit bus. 18 12 o wrl (p3.6): external data memory low byte write strobe. 19 13 o rd (p3.7): external data memory read strobe. rst 10 4 i reset: a low on this pin resets the microcontroller, causing i/o ports and peripherals to take on their default states, and the processor to begin execution at the address contained in the reset vector. refer to the section on reset for details. ale/prog 33 27 i/o address latch enable/program pulse: a high output on the ale pin signals external circuitry to latch the address portion of the multiplexed address/data bus. a pulse on ale occurs only when it is needed in order to process a bus cycle.
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 5 mnemonic name and function type pin. no. mnemonic name and function type lqfp plcc psen 32 26 o program store enable: the read strobe for external program memory. when the microcontroller accesses external program memory, psen is driven low in order to enable memory devices. psen is only active when external code accesses are performed. ea /wait/ v pp 35 29 i external access/wait: the ea input determines whether the internal program memory of the microcontroller is used for code execution. the value on the ea pin is latched as the external reset input is released and applies during later execution. when latched as a 0, external program memory is used exclusively, when latched as a 1, internal program memory will be used up to its limit, and external program memory used above that point. after reset is released, this pin takes on the function of bus wait input. if wait is asserted high during any external bus access, that cycle will be extended until wait is released. during eprom programming, this pin is also the programming supply voltage input. xtal1 21 15 i crystal 1: input to the inverting amplifier used in the oscillator circuit and input to the internal clock generator circuits. xtal2 20 14 o crystal 2: output from the oscillator amplifier. special function registers name description sfr address bit functions and addresses reset name description sfr address msb lsb value bcr bus configuration register 46a e e e waitd busd bc2 bc1 bc0 note 1 btrh bus timing register high byte 469 dw1 dw0 dwa1 dwa0 dr1 dr0 dra1 dra0 ff btrl bus timing register low byte 468 wm1 wm0 alew e cr1 cr0 cra1 cra0 ef cs code segment 443 00 ds data segment 441 00 es extra segment 442 00 33f 33e 33d 33c 33b 33a 339 338 ieh* interrupt enable high byte 427 e e e e eti1 eri1 eti0 eri0 00 337 336 335 334 333 332 331 330 iel* interrupt enable low byte 426 ea e e et2 et1 ex1 et0 ex0 00 ipa0 interrupt priority 0 4a0 e pt0 e px0 00 ipa1 interrupt priority 1 4a1 e pt1 e px1 00 ipa2 interrupt priority 2 4a2 e e e pt2 00 ipa4 interrupt priority 4 4a4 e pti0 e pri0 00 ipa5 interrupt priority 5 4a5 e pti1 e pri1 00 387 386 385 384 383 382 381 380 p0* port 0 430 ad7 ad6 ad5 ad4 ad3 ad2 ad1 ad0 ff 38f 38e 38d 38c 38b 38a 389 388 p1* port 1 431 t2ex t2 txd1 rxd1 a3 a2 a1 wrh ff 397 396 395 394 393 392 391 390 p2* port 2 432 p2.7 p2.6 p2.5 p2.4 p2.3 p2.2 p2.1 p2.0 ff
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 6 name reset value bit functions and addresses sfr address description name reset value lsb msb sfr address description 39f 39e 39d 39c 39b 39a 399 398 p3* port 3 433 rd wr t1 t0 int1 int0 txd0 rxd0 ff p0cfga port 0 configuration a 470 note 5 p1cfga port 1 configuration a 471 note 5 p2cfga port 2 configuration a 472 note 5 p3cfga port 3 configuration a 473 note 5 p0cfgb port 0 configuration b 4f0 note 5 p1cfgb port 1 configuration b 4f1 note 5 p2cfgb port 2 configuration b 4f2 note 5 p3cfgb port 3 configuration b 4f3 note 5 227 226 225 224 223 222 221 220 pcon* power control register 404 e e e e e e pd idl 00 20f 20e 20d 20c 20b 20a 209 208 pswh* program status word (high byte) 401 sm tm rs1 rs0 im3 im2 im1 im0 note 2 207 206 205 204 203 202 201 200 pswl* program status word (low byte) 400 c ac e e e v n z note 2 217 216 215 214 213 212 211 210 psw51* 80c51 compatible psw 402 c ac f0 rs1 rs0 v f1 p note 3 rth0 timer 0 extended reload, high byte 455 00 rth1 timer 1 extended reload, high byte 457 00 rtl0 timer 0 extended reload, low byte 454 00 rtl1 timer 1 extended reload, low byte 456 00 307 306 305 304 303 302 301 300 s0con* serial port 0 control register 420 sm0_0 sm1_0 sm2_0 ren_0 tb8_0 rb8_0 ti_0 ri_0 00 30f 30e 30d 30c 30b 30a 309 308 s0stat* serial port 0 extended status 421 e e e e fe0 br0 oe0 stint0 00 s0buf serial port 0 buffer register 460 x s0addr serial port 0 address register 461 00 s0aden serial port 0 address enable register 462 00 327 326 325 324 323 322 321 320 s1con* serial port 1 control register 424 sm0_1 sm1_1 sm2_1 ren_1 tb8_1 rb8_1 ti_1 ri_1 00 32f 32e 32d 32c 32b 32a 329 328 s1stat* serial port 1 extended status 425 e e e e fe1 br1 oe1 stint1 00 s1buf serial port 1 buffer register 464 x s1addr serial port 1 address register 465 00 s1aden serial port 1 address enable register 466 00 scr system configuration register 440 e e e e pt1 pt0 cm pz 00 21f 21e 21d 21c 21b 21a 219 218 ssel* segment selection register 403 eswen r6seg r5seg r4seg r3seg r2seg r1seg r0seg 00 swe software interrupt enable 47a e swe7 swe6 swe5 swe4 swe3 swe2 swe1 00
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 7 name reset value bit functions and addresses sfr address description name reset value lsb msb sfr address description 357 356 355 354 353 352 351 350 swr* software interrupt request 42a e swr7 swr6 swr5 swr4 swr3 swr2 swr1 00 2c7 2c6 2c5 2c4 2c3 2c2 2c1 2c0 t2con* timer 2 control register 418 tf2 exf2 rclk0 tclk0 exen2 tr2 c/t2 cp/rl2 00 2cf 2ce 2cd 2cc 2cb 2ca 2c9 2c8 t2mod* timer 2 mode control 419 e e rclk1 tclk1 e e t2oe dcen 00 th2 timer 2 high byte 459 00 tl2 timer 2 low byte 458 00 t2caph timer 2 capture register, high byte 45b 00 t2capl timer 2 capture register, low byte 45a 00 287 286 285 284 283 282 281 280 tcon* timer 0 and 1 control register 410 tf1 tr1 tf0 tr0 ie1 it1 ie0 it0 00 th0 timer 0 high byte 451 00 th1 timer 1 high byte 453 00 tl0 timer 0 low byte 450 00 tl1 timer 1 low byte 452 00 tmod timer 0 and 1 mode control 45c gate c/t m1 m0 gate c/t m1 m0 00 28f 28e 28d 28c 28b 28a 289 288 tstat* timer 0 and 1 extended status 411 e e e e e t1oe e t0oe 00 2ff 2fe 2fd 2fc 2fb 2fa 2f9 2f8 wdcon* watchdog control register 41f pre2 pre1 pre0 e e wdrun wdtof e note 6 wdl watchdog timer reload 45f 00 wfeed1 watchdog feed 1 45d x wfeed2 watchdog feed 2 45e x notes: * sfrs are bit addressable. 1. at reset, the bcr register is loaded with the binary value 0000 0a11, where aao is the value on the busw pin. this defaults t he address bus size to 20 bits since the xa-g37 has only 20 address lines. 2. sfr is loaded from the reset vector. 3. all bits except f1, f0, and p are loaded from the reset vector. those bits are all 0. 4. unimplemented bits in sfrs are x (unknown) at all times. ones should not be written to these bits since they may be used for other purposes in future xa derivatives. the reset value shown for these bits is 0. 5. port configurations default to quasi-bidirectional when the xa begins execution from internal code memory after reset, based on the condition found on the ea pin. thus all pncfga registers will contain ff and pncfgb registers will contain 00. when the xa begi ns execution using external code memory, the default configuration for pins that are associated with the external bus will be push -pull. the pncfga and pncfgb register contents will reflect this difference. 6. the wdcon reset value is e6 for a watchdog reset, e4 for all other reset causes. 7. the xa-g37 implements an 8-bit sfr bus, as stated in chapter 8 of the xa user guide . all sfr accesses must be 8-bit operations. attempts to write 16 bits to an sfr will actually write only the lower 8 bits. sixteen bit sfr reads will return undefined data in the u pper byte.
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 8 xa-g37 timer/counters the xa has two standard 16-bit enhanced timer/counters: timer 0 and timer 1. additionally, it has a third 16-bit up/down timer/counter, t2. a central timing generator in the xa core provides the time-base for all xa timers and counters. the timer/event counters can perform the following functions: measure time intervals and pulse duration count external events generate interrupt requests generate pwm or timed output waveforms all of the timer/counters (timer 0, timer 1 and timer 2) can be independently programmed to operate either as timers or event counters via the c/t bit in the tncon register. all timers count up unless otherwise stated. these timers may be dynamically read during program execution. the base clock rate of all of the timers is user programmable. this applies to timers t0, t1, and t2 when running in timer mode (as opposed to counter mode), and the watchdog timer. the clock driving the timers is called tclk and is determined by the setting of two bits (pt1, pt0) in the system configuration register (scr). the frequency of tclk may be selected to be the oscillator input divided by 4 (osc/4), the oscillator input divided by 16 (osc/16), or the oscillator input divided by 64 (osc/64). this gives a range of possibilities for the xa timer functions, including baud rate generation, timer 2 capture. note that this single rate setting applies to all of the timers. when timers t0, t1, or t2 are used in the counter mode, the register will increment whenever a falling edge (high to low transition) is detected on the external input pin corresponding to the timer clock. these inputs are sampled once every 2 oscillator cycles, so it can take as many as 4 oscillator cycles to detect a transition. thus the maximum count rate that can be supported is osc/4. the duty cycle of the timer clock inputs is not important, but any high or low state on the timer clock input pins must be present for 2 oscillator cycles before it is guaranteed to be aseeno by the timer logic. timer 0 and timer 1 the atimero or acountero function is selected by control bits c/t in the special function register tmod. these two timer/counters have four operating modes, which are selected by bit-pairs (m1, m0) in the tmod register. timer modes 1, 2, and 3 in xa are kept identical to the 80c51 timer modes for code compatibility. only the mode 0 is replaced in the xa by a more powerful 16-bit auto-reload mode. this will give the xa timers a much larger range when used as time bases. the recommended m1, m0 settings for the different modes are shown in figure 2. eee e pt1 pt0 cm pz pt1 pt0 operating prescaler selection. 0 0 osc/4 0 1 osc/16 1 0 osc/64 1 1 reserved cm compatibility mode allows the xa to execute most translated 80c51 code on the xa. the xa register file must copy the 80c51 mapping to data memory and mimic the 80c51 indirect addressing scheme. pz page zero mode forces all program and data addresses to 16-bits only. this saves stack space and speeds up execution but limits memory access to 64k. su00589 scr address:440 not bit addressable reset value: 00h lsb msb figure 1. system configuration register (scr) gate c/t m1 m0 gate c/t m1 m0 lsb msb gate gating control when set. timer/counter ano is enabled only while aintn o pin is high and atrno control bit is set. when cleared timer ano is enabled whenever atrno control bit is set. c/t timer or counter selector cleared for timer operation (input from internal system clock.) set for counter operation (input from atno input pin). m1 m0 operating 0 0 16-bit auto-reload timer/counter 0 1 16-bit non-auto-reload timer/counter 1 0 8-bit auto-reload timer/counter 1 1 dual 8-bit timer mode (timer 0 only) su00605 timer 1 timer 0 tmod address:45c not bit addressable reset value: 00h figure 2. timer/counter mode control (tmod) register
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 9 new enhanced mode 0 for timers t0 or t1 the 13-bit count mode on the 80c51 (current mode 0) has been replaced in the xa with a 16-bit auto-reload mode. four additional 8-bit data registers (two per timer: rthn and rtln) are created to hold the auto-reload values. in this mode, the th overflow will set the tf flag in the tcon register and cause both the tl and th counters to be loaded from the rtl and rth registers respectively. these new sfrs will also be used to hold the tl reload data in the 8-bit auto-reload mode (mode 2) instead of th. the overflow rate for timer 0 or timer 1 in mode 0 may be calculated as follows: timer_rate = osc / (n * (65536 timer_reload_value)) where n = the tclk prescaler value: 4 (default), 16, or 64. mode 1 mode 1 is the 16-bit non-auto reload mode. mode 2 mode 2 configures the timer register as an 8-bit counter (tln) with automatic reload. overflow from tln not only sets tfn, but also reloads tln with the contents of rtln, which is preset by software. the reload leaves thn unchanged. mode 2 operation is the same for timer/counter 0. the overflow rate for timer 0 or timer 1 in mode 2 may be calculated as follows: timer_rate = osc / (n * (256 timer_reload_value)) where n = the tclk prescaler value: 4, 16, or 64. mode 3 timer 1 in mode 3 simply holds its count. the effect is the same as setting tr1 = 0. timer 0 in mode 3 establishes tl0 and th0 as two separate counters. tl0 uses the timer 0 control bits: c/t, gate, tr0, int0, and tf0. th0 is locked into a timer function and takes over the use of tr1 and tf1 from timer 1. thus, th0 now controls the atimer 1o interrupt. mode 3 is provided for applications requiring an extra 8-bit timer. when timer 0 is in mode 3, timer 1 can be turned on and off by switching it out of and into its own mode 3, or can still be used by the serial port as a baud rate generator, or in fact, in any application not requiring an interrupt. it0 lsb msb bit symbol function tcon.7 tf1 timer 1 overflow flag. set by hardware on timer/counter overflow. this flag will not be set if t1oe (tstat.2) is set. cleared by hardware when processor vectors to interrupt routine, or by clearing the bit in software. tcon.6 tr1 timer 1 run control bit. set/cleared by software to turn timer/counter 1 on/off. tcon.5 tf0 timer 0 overflow flag. set by hardware on timer/counter overflow. this flag will not be set if t0oe (tstat.0) is set. cleared by hardware when processor vectors to interrupt routine, or by clearing the bit in software. tcon.4 tr0 timer 0 run control bit. set/cleared by software to turn timer/counter 0 on/off. tcon.3 ie1 interrupt 1 edge flag. set by hardware when external interrupt edge detected. cleared when interrupt processed. tcon.2 it1 interrupt 1 type control bit. set/cleared by software to specify falling edge/low level triggered external interrupts. tcon.1 ie0 interrupt 0 edge flag. set by hardware when external interrupt edge detected. cleared when interrupt processed. tcon.0 it0 interrupt 0 type control bit. set/cleared by software to specify falling edge/low level triggered external interrupts. su00604c ie0 it1 ie1 tr0 tf0 tr1 tf1 tcon address:410 bit addressable reset value: 00h figure 3. timer/counter control (tcon) register
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 10 cp or rl2 bit symbol function t2con.7 tf2 timer 2 overflow flag. set by hardware on timer/counter overflow. must be cleared by software. tf2 will not be set when rclk0, rclk1, tclk0, tclk1 or t2oe=1. t2con.6 exf2 timer 2 external flag is set when a capture or reload occurs due to a negative transition on t2ex (and exen2 is set). this flag will cause a timer 2 interrupt when this interrupt is enabled. exf2 is cleared by software. t2con.5 rclk0 receive clock flag. t2con.4 tclk0 transmit clock flag. rclk0 and tclk0 are used to select timer 2 overflow rate as a clock source for uart0 instead of timer t1. t2con.3 exen2 timer 2 external enable bit allows a capture or reload to occur due to a negative transition on t2ex. t2con.2 tr2 start=1/stop=0 control for timer 2. t2con.1 c2 or t2 timer or counter select. 0=internal timer 1=external event counter (falling edge triggered) t2con.0 cp or rl2 capture/reload flag. if cp/rl2 & exen2=1 captures will occur on negative transitions of t2ex. if cp/rl2=0, exen2=1 auto reloads occur with either timer 2 overflows or negative transitions at t2ex. if rclk or tclk=1 the timer is set to auto reload on timer 2 overflow, this bit has no effect. su00606 c2 or t2 tr2 exen2 tclk0 rclk0 exf2 tf2 t2con address:418 bit addressable reset value: 00h lsb msb figure 4. timer/counter 2 control (t2con) register new timer-overflow toggle output in the xa, the timer module now has two outputs, which toggle on overflow from the individual timers. the same device pins that are used for the t0 and t1 count inputs are also used for the new overflow outputs. an sfr bit (tnoe in the tstat register) is associated with each counter and indicates whether port-sfr data or the overflow signal is output to the pin. these outputs could be used in applications for generating variable duty cycle pwm outputs (changing the auto-reload register values). also variable frequency (osc/8 to osc/8,388,608) outputs could be achieved by adjusting the prescaler along with the auto-reload register values. with a 30.0mhz oscillator, this range would be 3.58hz to 3.75mhz. timer t2 timer 2 in the xa is a 16-bit timer/counter which can operate as either a timer or as an event counter. this is selected by c/t2 in the special function register t2con. upon timer t2 overflow/underflow, the tf2 flag is set, which may be used to generate an interrupt. it can be operated in one of three operating modes: auto-reload (up or down counting), capture, or as the baud rate generator (for either or both uarts via sfrs t2mod and t2con). these modes are shown in table 1. capture mode in the capture mode there are two options which are selected by bit exen2 in t2con. if exen2 = 0, then timer 2 is a 16-bit timer or counter, which upon overflowing sets bit tf2, the timer 2 overflow bit. this will cause an interrupt when the timer 2 interrupt is enabled. if exen2 = 1, then timer 2 still does the above, but with the added feature that a 1-to-0 transition at external input t2ex causes the current value in the timer 2 registers, tl2 and th2, to be captured into registers rcap2l and rcap2h, respectively. in addition, the transition at t2ex causes bit exf2 in t2con to be set. this will cause an interrupt in the same fashion as tf2 when the timer 2 interrupt is enabled. the capture mode is illustrated in figure 7. auto-reload mode (up or down counter) in the auto-reload mode, the timer registers are loaded with the 16-bit value in t2caph and t2capl when the count overflows. t2caph and t2capl are initialized by software. if the exen2 bit in t2con is set, the timer registers will also be reloaded and the exf2 flag set when a 1-to-0 transition occurs at input t2ex. the auto-reload mode is shown in figure 8. in this mode, timer 2 can be configured to count up or down. this is done by setting or clearing the bit dcen (down counter enable) in the t2mod special function register (see table 1). the t2ex pin then controls the count direction. when t2ex is high, the count is in the up direction, when t2ex is low, the count is in the down direction. figure 8 shows timer 2, which will count up automatically, since dcen = 0. in this mode there are two options selected by bit exen2 in the t2con register. if exen2 = 0, then timer 2 counts up to ffffh and sets the tf2 (overflow flag) bit upon overflow. this causes the timer 2 registers to be reloaded with the 16-bit value in t2capl and t2caph, whose values are preset by software. if exen2 = 1, a 16-bit reload can be triggered either by an overflow or by a 1-to-0 transition at input t2ex. this transition also sets the exf2 bit. if enabled, either tf2 or exf2 bit can generate the timer 2 interrupt. in figure 9, the dcen = 1; this enables the timer 2 to count up or down. in this mode, the logic level of t2ex pin controls the direction of count. when a logic `1' is applied at pin t2ex, the timer 2 will count up. the timer 2 will overflow at ffffh and set the tf2 flag, which can then generate an interrupt if enabled. this timer overflow, also causes the 16-bit value in t2capl and t2caph to be reloaded into the timer registers tl2 and th2, respectively. a logic `0' at pin t2ex causes timer 2 to count down. when counting down, the timer value is compared to the 16-bit value contained in t2caph and t2capl. when the value is equal, the
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 11 timer register is loaded with ffff hex. the underflow also sets the tf2 flag, which can generate an interrupt if enabled. the external flag exf2 toggles when timer 2 underflows or overflows. this exf2 bit can be used as a 17th bit of resolution, if needed. the exf2 flag does not generate an interrupt in this mode. as the baud rate generator, timer t2 is incremented by tclk. baud rate generator mode by setting the tclkn and/or rclkn in t2con or t2mod, the timer 2 can be chosen as the baud rate generator for either or both uarts. the baud rates for transmit and receive can be simultaneously different. programmable clock-out a 50% duty cycle clock can be programmed to come out on p1.6. this pin, besides being a regular i/o pin, has two alternate functions. it can be programmed (1) to input the external clock for timer/counter 2 or (2) to output a 50% duty cycle clock ranging from 3.58hz to 3.75mhz at a 30mhz operating frequency. to configure the timer/counter 2 as a clock generator, bit c/t2 (in t2con) must be cleared and bit t20e in t2mod must be set. bit tr2 (t2con.2) also must be set to start the timer. the clock-out frequency depends on the oscillator frequency and the reload value of timer 2 capture registers (tcap2h, tcap2l) as shown in this equation: tclk 2 (65536  tcap2h, tcap2l) in the clock-out mode timer 2 roll-overs will not generate an interrupt. this is similar to when it is used as a baud-rate generator. it is possible to use timer 2 as a baud-rate generator and a clock generator simultaneously. note, however, that the baud-rate will be 1/8 of the clock-out frequency. table 1. timer 2 operating modes tr2 cp/rl2 rclk+tclk dcen mode 0 x x x timer off (stopped) 1 0 0 0 16-bit auto-reload, counting up 1 0 0 1 16-bit auto-reload, counting up or down depending on t2ex pin 1 1 0 x 16-bit capture 1 x 1 x baud rate generator t0oe lsb msb bit symbol function tstat.2 t1oe when 0, this bit allows the t1 pin to clock timer 1 when in the counter mode. when 1, t1 acts as an output and toggles at every timer 1 overflow. tstat.0 t0oe when 0, this bit allows the t0 pin to clock timer 0 when in the counter mode. when 1, t0 acts as an output and toggles at every timer 0 overflow. su00612b e t1oe e e e e e tstat address:411 bit addressable reset value: 00h figure 5. timer 0 and 1 extended status (tstat) dcen bit symbol function t2mod.5 rclk1 receive clock flag. t2mod.4 tclk1 transmit clock flag. rclk1 and tclk1 are used to select timer 2 overflow rate as a clock source for uart1 instead of timer t1. t2mod.1 t2oe when 0, this bit allows the t2 pin to clock timer 2 when in the counter mode. when 1, t2 acts as an output and toggles at every timer 2 overflow. t2mod.0 dcen controls count direction for timer 2 in autoreload mode. dcen=0 counter set to count up only dcen=1 counter set to count up or down, depending on t2ex (see text). su00610b t2oe e e tclk1 rclk1 e e t2mod address:419 bit addressable reset value: 00h lsb msb figure 6. timer 2 mode control (t2mod)
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 12 tclk c/t 2 = 0 c/t 2 = 1 tr2 control tl2 (8-bits) th2 (8-bits) tf2 t2capl t2caph exen2 control exf2 timer 2 interrupt t2ex pin transition detector t2 pin capture su00704 figure 7. timer 2 in capture mode tclk c/t 2 = 0 c/t 2 = 1 tr2 control tl2 (8-bits) th2 (8-bits) tf2 t2capl t2caph exen2 control exf2 timer 2 interrupt t2ex pin transition detector t2 pin reload su00705 figure 8. timer 2 in auto-reload mode (dcen = 0) tclk c/t 2 = 0 c/t 2 = 1 tl2 th2 tr2 control t2 pin su00706 ffh ffh t2capl t2caph (up counting reload value) t2ex pin tf2 interrupt count direction 1 = up 0 = down exf2 overflow (down counting reload value) toggle figure 9. timer 2 auto reload mode (dcen = 1)
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 13 watchdog timer the watchdog timer subsystem protects the system from incorrect code execution by causing a system reset when the watchdog timer underflows as a result of a failure of software to feed the timer prior to the timer reaching its terminal count. it is important to note that the watchdog timer is running after any type of reset and must be turned off by user software if the application does not use the watchdog function. watchdog function the watchdog consists of a programmable prescaler and the main timer. the prescaler derives its clock from the tclk source that also drives timers 0, 1, and 2. the watchdog timer subsystem consists of a programmable 13-bit prescaler, and an 8-bit main timer. the main timer is clocked (decremented) by a tap taken from one of the top 8-bits of the prescaler as shown in figure 10. the clock source for the prescaler is the same as tclk (same as the clock source for the timers). thus the main counter can be clocked as often as once every 32 tclks (see table 2). the watchdog generates an underflow signal (and is autoloaded from wdl) when the watchdog is at count 0 and the clock to decrement the watchdog occurs. the watchdog is 8 bits wide and the autoload value can range from 0 to ffh. (the autoload value of 0 is permissible since the prescaler is cleared upon autoload). this leads to the following user design equations. definitions: t osc is the oscillator period, n is the selected prescaler tap value, w is the main counter autoload value, p is the prescaler value from table 2, t min is the minimum watchdog time-out value (when the autoload value is 0), t max is the maximum time-out value (when the autoload value is ffh), t d is the design time-out value. t min = t osc 4 32 (w = 0, n = 4) t max = t osc 64 4096 256 (w = 255, n = 64) t d = t osc n p (w + 1) the watchdog timer is not directly loadable by the user. instead, the value to be loaded into the main timer is held in an autoload register. in order to cause the main timer to be loaded with the appropriate value, a special sequence of software action must take place. this operation is referred to as feeding the watchdog timer. to feed the watchdog, two instructions must be sequentially executed successfully. no intervening sfr accesses are allowed, so interrupts should be disabled before feeding the watchdog. the instructions should move a5h to the wfeed1 register and then 5ah to the wfeed2 register. if wfeed1 is correctly loaded and wfeed2 is not correctly loaded, then an immediate watchdog reset will occur. the program sequence to feed the watchdog timer or cause new wdcon settings to take effect is as follows: clr ea ; disable global interrupts. mov.b wfeed1,#a5h ; do watchdog feed part 1 mov.b wfeed2,#5ah ; do watchdog feed part 2 setb ea ; re-enable global interrupts. this sequence assumes that the xa interrupt system is enabled and there is a possibility of an interrupt request occurring during the feed sequence. if an interrupt was allowed to be serviced and the service routine contained any sfr access, it would trigger a watchdog reset. if it is known that no interrupt could occur during the feed sequence, the instructions to disable and re-enable interrupts may be removed. the software must be written so that a feed operation takes place every t d seconds from the last feed operation. some tradeoffs may need to be made. it is not advisable to include feed operations in minor loops or in subroutines unless the feed operation is a specific subroutine. to turn the watchdog timer completely off, the following code sequence should be used: mov.b wdcon,#0 ; set wd control register to clear wdrun. mov.b wfeed1,#a5h ; do watchdog feed part 1 mov.b wfeed2,#5ah ; do watchdog feed part 2 this sequence assumes that the watchdog timer is being turned off at the beginning of initialization code and that the xa interrupt system has not yet been enabled. if the watchdog timer is to be turned off at a point when interrupts may be enabled, instructions to disable and re-enable interrupts should be added to this sequence. watchdog control register (wdcon) the reset values of the wdcon and wdl registers will be such that the watchdog timer has a timeout period of 4 4096 t osc and the watchdog is running. wdcon can be written by software but the changes only take effect after executing a valid watchdog feed sequence. table 2. prescaler select values in wdcon pre2 pre1 pre0 divisor 0 0 0 32 0 0 1 64 0 1 0 128 0 1 1 256 1 0 0 512 1 0 1 1024 1 1 0 2048 1 1 1 4096 watchdog detailed operation when external reset is applied, the following takes place: ? watchdog run control bit set to on (1). ? autoload register wdl set to 00 (min. count). ? watchdog time-out flag cleared. ? prescaler is cleared. ? prescaler tap set to the highest divide. ? autoload takes place. when coming out of a hardware reset, the software should load the autoload register and then feed the watchdog (cause an autoload). if the watchdog is running and happens to underflow at the time the external reset is applied, the watchdog time-out flag will be cleared.
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 14 pre2 pre1 pre0 e e wdrun wdtof wdcon 8bit down counter prescaler tclk mov wfeed1,#a5h mov wfeed2,#5ah watchdog feed sequence wdl su00581a e internal reset figure 10. watchdog timer in xa-g37 when the watchdog underflows, the following action takes place (see figure 10): ? autoload takes place. ? watchdog time-out flag is set ? watchdog run bit unchanged. ? autoload (wdl) register unchanged. ? prescaler tap unchanged. ? all other device action same as external reset. note that if the watchdog underflows, the program counter will be loaded from the reset vector as in the case of an internal reset. the watchdog time-out flag can be examined to determine if the watchdog has caused the reset condition. the watchdog time-out flag bit can be cleared by software. wdcon register bit definitions wdcon.7 pre2 prescaler select 2, reset to 1 wdcon.6 pre1 prescaler select 1, reset to 1 wdcon.5 pre0 prescaler select 0, reset to 1 wdcon.4 e wdcon.3 e wdcon.2 wdrun watchdog run control bit, reset to 1 wdcon.1 wdtof timeout flag wdcon.0 e uarts the xa-g37 includes 2 uart ports that are compatible with the enhanced uart used on the 8xc51fb. baud rate selection is somewhat different due to the clocking scheme used for the xa timers. some other enhancements have been made to uart operation. the first is that there are separate interrupt vectors for each uart's transmit and receive functions. the uart transmitter has been double buffered, allowing packed transmission of data with no gaps between bytes and less critical interrupt service routine timing. a break detect function has been added to the uart. this operates independently of the uart itself and provides a start-of-break status bit that the program may test. finally, an overrun error flag has been added to detect missed characters in the received data stream. the double buffered uart transmitter may require some software changes in code written for the original xa-g37 single buffered uart. each uart baud rate is determined by either a fixed division of the oscillator (in uart modes 0 and 2) or by the timer 1 or timer 2 overflow rate (in uart modes 1 and 3). timer 1 defaults to clock both uart0 and uart1. timer 2 can be programmed to clock either uart0 through t2con (via bits r0clk and t0clk) or uart1 through t2mod (via bits r1clk and t1clk). in this case, the uart not clocked by t2 could use t1 as the clock source. the serial port receive and transmit registers are both accessed at special function register snbuf. writing to snbuf loads the transmit register, and reading snbuf accesses a physically separate receive register. the serial port can operate in 4 modes: mode 0: serial i/o expansion mode. serial data enters and exits through rxdn. txdn outputs the shift clock. 8 bits are transmitted/received (lsb first). (the baud rate is fixed at 1/16 the oscillator frequency.) mode 1: standard 8-bit uart mode. 10 bits are transmitted (through txdn) or received (through rxdn): a start bit (0), 8 data bits (lsb first), and a stop bit (1). on receive, the stop bit goes into rb8 in special function register sncon. the baud rate is variable. mode 2: fixed rate 9-bit uart mode. 11 bits are transmitted (through txd) or received (through rxd): start bit (0), 8 data bits (lsb first), a programmable 9th data bit, and a stop bit (1). on transmit, the 9th data bit (tb8_n in sncon) can be assigned the value of 0 or 1. or, for example, the parity bit (p, in the psw) could be moved into tb8_n. on receive, the 9th data bit goes into rb8_n in special function register sncon, while the stop bit is ignored. the baud rate is programmable to 1/32 of the oscillator frequency. mode 3: standard 9-bit uart mode. 11 bits are transmitted (through txdn) or received (through rxdn): a start bit (0), 8 data bits (lsb first), a programmable 9th data bit, and a stop bit (1). in fact, mode 3 is the same as mode 2 in all respects except baud rate. the baud rate in mode 3 is variable. in all four modes, transmission is initiated by any instruction that uses snbuf as a destination register. reception is initiated in mode 0 by the condition ri_n = 0 and ren_n = 1. reception is initiated in the other modes by the incoming start bit if ren_n = 1.
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 15 serial port control register the serial port control and status register is the special function register sncon, shown in figure 12. this register contains not only the mode selection bits, but also the 9th data bit for transmit and receive (tb8_n and rb8_n), and the serial port interrupt bits (ti_n and ri_n). ti flag in order to allow easy use of the double buffered uart transmitter feature, the ti_n flag is set by the uart hardware under two conditions. the first condition is the completion of any byte transmission. this occurs at the end of the stop bit in modes 1, 2, or 3, or at the end of the eighth data bit in mode 0. the second condition is when snbuf is written while the uart transmitter is idle. in this case, the ti_n flag is set in order to indicate that the second uart transmitter buffer is still available. typically, uart transmitters generate one interrupt per byte transmitted. in the case of the xa uart, one additional interrupt is generated as defined by the stated conditions for setting the ti_n flag. this additional interrupt does not occur if double buffering is bypassed as explained below. note that if a character oriented approach is used to transmit data through the uart, there could be a second interrupt for each character transmitted, depending on the timing of the writes to sbuf. for this reason, it is generally better to bypass double buffering when the uart transmitter is used in character oriented mode. this is also true if the uart is polled rather than interrupt driven, and when transmission is character oriented rather than message or string oriented. the interrupt occurs at the end of the last byte transmitted when the uart becomes idle. among other things, this allows a program to determine when a message has been transmitted completely. the interrupt service routine should handle this additional interrupt. the recommended method of using the double buffering in the application program is to have the interrupt service routine handle a single byte for each interrupt occurrence. in this manner the program essentially does not require any special considerations for double buffering. unless higher priority interrupts cause delays in the servicing of the uart transmitter interrupt, the double buffering will result in transmitted bytes being tightly packed with no intervening gaps. 9-bit mode please note that the ninth data bit (tb8) is not double buffered. care must be taken to insure that the tb8 bit contains the intended data at the point where it is transmitted. double buffering of the uart transmitter may be bypassed as a simple means of synchronizing tb8 to the rest of the data stream. bypassing double buffering the uart transmitter may be used as if it is single buffered. the recommended uart transmitter interrupt service routine (isr) technique to bypass double buffering first clears the ti_n flag upon entry into the isr, as in standard practice. this clears the interrupt that activated the isr. secondly, the ti_n flag is cleared immediately following each write to snbuf. this clears the interrupt flag that would otherwise direct the program to write to the second transmitter buffer. if there is any possibility that a higher priority interrupt might become active between the write to snbuf and the clearing of the ti_n flag, the interrupt system may have to be temporarily disabled during that sequence by clearing, then setting the ea bit in the iel register. note regarding older xa-g37 devices older versions of the xa-g30, xa-g37, and xa-g35 emulation bondout devices do not have the double buffering feature enabled. contact factory for details.
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 16 clocking scheme/baud rate generation the xa uarts clock rates are determined by either a fixed division (modes 0 and 2) of the oscillator clock or by the timer 1 or timer 2 overflow rate (modes 1 and 3). the clock for the uarts in xa runs at 16x the baud rate. if the timers are used as the source for baud clock, since maximum speed of timers/baud clock is osc/4, the maximum baud rate is timer overflow divided by 16 i.e. osc/64. in mode 0, it is fixed at osc/16. in mode 2, however, the fixed rate is osc/32. 00 osc/4 pre-scaler for all timers t0 1 2 01 osc/16 f or a ll ti mers t0 , 1 , 2 controlled b y pt1 , pt0 10 osc/64 controlled by pt1, pt0 bits in scr 11 reserved baud rate for uart mode 0: baud_rate = osc/16 baud rate calculation for uart mode 1 and 3: baud_rate = timer_rate/16 timer_rate = osc/(n*(timer_range timer_reload_value)) where n = the tclk prescaler value: 4, 16, or 64. and timer_range = 256 for timer 1 in mode 2. 65536 for timer 1 in mode 0 and timer 2 in count up mode. the timer reload value may be calculated as follows: timer_reload_value = timer_range(osc/(baud_rate*n*16)) notes: 1. the maximum baud rate for a uart in mode 1 or 3 is osc/64. 2. the lowest possible baud rate (for a given oscillator frequency and n value) may be found by using a timer reload value of 0. 3. the timer reload value may never be larger than the timer range. 4. if a timer reload value calculation gives a negative or fractional result, the baud rate requested is not possible at the given oscillator frequency and n value. baud rate for uart mode 2: baud_rate = osc/32 using timer 2 to generate baud rates timer t2 is a 16-bit up/down counter in xa. as a baud rate generator, timer 2 is selected as a clock source for either/both uart0 and uart1 transmitters and/or receivers by setting tclkn and/or rclkn in t2con and t2mod. as the baud rate generator, t2 is incremented as osc/n where n = 4, 16 or 64 depending on tclk as programmed in the scr bits pt1, and pto. so, if t2 is the source of one uart, the other uart could be clocked by either t1 overflow or fixed clock, and the uarts could run independently with different baud rates. t2con bit5 bit4 0x418 rclk0 tclk0 t2mod bit5 bit4 0x419 rclk1 tclk1 prescaler select for timer clock (tclk) scr bit3 bit2 0x440 pt1 pt0 stintn bit symbol function snstat.3 fen framing error flag is set when the receiver fails to see a valid stop bit at the end of the frame. cleared by software. snstat.2 brn break detect flag is set if a character is received with all bits (including stop bit) being logic `0'. thus it gives a astart of break detecto on bit 8 for mode 1 and bit 9 for modes 2 and 3. the break detect feature operates independently of the uarts and provides the start of break detect status bit that a user program may poll. cleared by software. snstat.1 oen overrun error flag is set if a new character is received in the receiver buffer while it is still full (before the software has read the previous character from the buffer), i.e., when bit 8 of a new byte is received while ri in sncon is still set. cleared by software. snstat.0 stintn this flag must be set to enable any of the above status flags to generate a receive interrupt (rin). the only way it can be cleared is by a software write to this register. su00607b oen brn fen e e e e snstat address: s0stat 421 s1stat 425 bit addressable reset value: 00h lsb msb figure 11. serial port extended status (snstat) register (see also figure 13 regarding framing error flag)
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 17 uart interrupt scheme there are separate interrupt vectors for each uart's transmit and receive functions. table 3. vector locations for uarts in xa vector address interrupt source arbitration a0h a3h uart 0 receiver 7 a4h a7h uart 0 transmitter 8 a8h abh uart 1 receiver 9 ach afh uart 1 transmitter 10 note: the transmit and receive vectors could contain the same isr address to work like a 8051 interrupt scheme error handling, status flags and break detect the uarts in xa has the following error flags; see figure 11. multiprocessor communications modes 2 and 3 have a special provision for multiprocessor communications. in these modes, 9 data bits are received. the 9th one goes into rb8. then comes a stop bit. the port can be programmed such that when the stop bit is received, the serial port interrupt will be activated only if rb8 = 1. this feature is enabled by setting bit sm2 in scon. a way to use this feature in multiprocessor systems is as follows: when the master processor wants to transmit a block of data to one of several slaves, it first sends out an address byte which identifies the target slave. an address byte differs from a data byte in that the 9th bit is 1 in an address byte and 0 in a data byte. with sm2 = 1, no slave will be interrupted by a data byte. an address byte, however, will interrupt all slaves, so that each slave can examine the received byte and see if it is being addressed. the addressed slave will clear its sm2 bit and prepare to receive the data bytes that will be coming. the slaves that weren't being addressed leave their sm2s set and go on about their business, ignoring the coming data bytes. sm2 has no effect in mode 0, and in mode 1 can be used to check the validity of the stop bit although this is better done with the framing error (fe) flag. in a mode 1 reception, if sm2 = 1, the receive interrupt will not be activated unless a valid stop bit is received. automatic address recognition automatic address recognition is a feature which allows the uart to recognize certain addresses in the serial bit stream by using hardware to make the comparisons. this feature saves a great deal of software overhead by eliminating the need for the software to examine every serial address which passes by the serial port. this feature is enabled by setting the sm2 bit in scon. in the 9 bit uart modes, mode 2 and mode 3, the receive interrupt flag (ri) will be automatically set when the received byte contains either the agiveno address or the abroadcasto address. the 9 bit mode requires that the 9th information bit is a 1 to indicate that the received information is an address and not data. automatic address recognition is shown in figure 14. using the automatic address recognition feature allows a master to selectively communicate with one or more slaves by invoking the given slave address or addresses. all of the slaves may be contacted by using the broadcast address. two special function registers are used to define the slave's address, saddr, and the address mask, saden. saden is used to define which bits in the saddr are to be used and which bits are adon't careo. the saden mask can be logically anded with the saddr to create the agiveno address which the master will use for addressing each of the slaves. use of the given address allows multiple slaves to be recognized while excluding others. the following examples will help to show the versatility of this scheme: slave 0 saddr = 1100 0000 saden = 1111 1101 given = 1100 00x0 slave 1 saddr = 1100 0000 saden = 1111 1110 given = 1100 000x in the above example saddr is the same and the saden data is used to differentiate between the two slaves. slave 0 requires a 0 in bit 0 and it ignores bit 1. slave 1 requires a 0 in bit 1 and bit 0 is ignored. a unique address for slave 0 would be 1100 0010 since slave 1 requires a 0 in bit 1. a unique address for slave 1 would be 1100 0001 since a 1 in bit 0 will exclude slave 0. both slaves can be selected at the same time by an address which has bit 0 = 0 (for slave 0) and bit 1 = 0 (for slave 1). thus, both could be addressed with 1100 0000. in a more complex system the following could be used to select slaves 1 and 2 while excluding slave 0: slave 0 saddr = 1100 0000 saden = 1111 1001 given = 1100 0xx0 slave 1 saddr = 1110 0000 saden = 1111 1010 given = 1110 0x0x slave 2 saddr = 1110 0000 saden = 1111 1100 given = 1110 00xx in the above example the differentiation among the 3 slaves is in the lower 3 address bits. slave 0 requires that bit 0 = 0 and it can be uniquely addressed by 1110 0110. slave 1 requires that bit 1 = 0 and it can be uniquely addressed by 1110 and 0101. slave 2 requires that bit 2 = 0 and its unique address is 1110 0011. to select slaves 0 and 1 and exclude slave 2 use address 1110 0100, since it is necessary to make bit 2 = 1 to exclude slave 2. the broadcast address for each slave is created by taking the logical or of saddr and saden. zeros in this result are teated as don't-cares. in most cases, interpreting the don't-cares as ones, the broadcast address will be ff hexadecimal. upon reset saddr and saden are loaded with 0s. this produces a given address of all adon't careso as well as a broadcast address of all adon't careso. this effectively disables the automatic addressing mode and allows the microcontroller to use standard uart drivers which do not make use of this feature.
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 18 bit symbol function sncon.5 sm2 enables the multiprocessor communication feature in modes 2 and 3. in mode 2 or 3, if sm2 is set to 1, then ri will not be activated if the received 9th data bit (rb8) is 0. in mode 1, if sm2=1 then ri will not be activated if a valid stop bit was not received. in mode 0, sm2 should be 0. sncon.4 ren enables serial reception. set by software to enable reception. clear by software to disable reception. sncon.3 tb8 the 9th data bit that will be transmitted in modes 2 and 3. set or clear by software as desired. the tb8 bit is not double buffered. see text for details. sncon.2 rb8 in modes 2 and 3, is the 9th data bit that was received. in mode 1, if sm2=0, rb8 is the stop bit that was received. in mode 0, rb8 is not used. sncon.1 ti transmit interrupt flag. set when another byte may be written to the uart transmitter. see text for details. must be cleared by software. sncon.0 ri receive interrupt flag. set by hardware at the end of the 8th bit time in mode 0, or at the end of the stop bit time in the other modes (except see sm2). must be cleared by software. where sm0, sm1 specify the serial port mode, as follows: sm0 sm1 mode description baud rate 0 0 0 shift register f osc /16 0 1 1 8-bit uart variable 1 0 2 9-bit uart f osc /32 1 1 3 9-bit uart variable su00597c ri ti rb8 tb8 ren sm2 sm1 sm0 sncon address: s0con 420 s1con 424 bit addressable reset value: 00h lsb msb figure 12. serial port control (sncon) register d0 d1 d2 d3 d4 d5 d6 d7 d8 stop bit data byte only in mode 2, 3 start bit su00598 e e e e fen brn oen stintn snstat if 0, sets fe figure 13. uart framing error detection sm0_n sm1_n sm2_n ren_n tb8_n rb8_n ti_n ri_n sncon d0 d1 d2 d3 d4 d5 d6 d7 d8 1 1 1 0 comparator 11 x received address d0 to d7 programmed address in uart mode 2 or mode 3 and sm2 = 1: interrupt if ren=1, rb8=1 and areceived addresso = aprogrammed addresso when own address received, clear sm2 to receive data bytes when all data bytes have been received: set sm2 to wait for next address. su00613 figure 14. uart multiprocessor communication, automatic address recognition
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 19 i/o port output configuration each i/o port pin can be user configured to one of 4 output types. the types are quasi-bidirectional (essentially the same as standard 80c51 family i/o ports), open-drain, push-pull, and off (high impedance). the default configuration after reset is quasi-bidirectional. however, in the romless mode (the ea pin is low at reset), the port pins that comprise the external data bus will default to push-pull outputs. i/o port output configurations are determined by the settings in port configuration sfrs. there are 2 sfrs for each port, called pncfga and pncfgb, where ano is the port number. one bit in each of the 2 sfrs relates to the output setting for the corresponding port pin, allowing any combination of the 2 output types to be mixed on those port pins. for instance, the output type of port 1 pin 3 is controlled by the setting of bit 3 in the sfrs p1cfga and p1cfgb. table 4 shows the configuration register settings for the 4 port output types. the electrical characteristics of each output type may be found in the dc characteristic table. table 4. port configuration register settings pncfgb pncfga port output mode 0 0 open drain 0 1 quasi-bidirectional 1 0 off (high impedance) 1 1 push-pull note: mode changes may cause glitches to occur during transitions. when modifying both registers, write instructions should be carried out consecutively. external bus the external program/data bus allows for 8-bit or 16-bit bus width, and address sizes from 12 to 20 bits. the bus width is selected by an input at reset (see reset options below), while the address size is set by the program in a configuration register. if all off-chip code is selected (through the use of the ea pin), the initial code fetches will be done with the maximum address size (20 bits). reset the device is reset whenever a logic a0a is applied to rst for at least 10 microseconds, placing a low level on the pin re-initializes the on-chip logic. reset must be asserted when power is initially applied to the xa and held until the oscillator is running. the duration of reset must be extended when power is initially applied or when using reset to exit power down mode. this is due to the need to allow the oscillator time to start up and stabilize. for most power supply ramp up conditions, this time is 10 milliseconds. as it is brought high again, an exception is generated which causes the processor to jump to the address contained in the memory location 0000. the destination of the reset jump must be located in the first 64k of code address on power-up, all vectors are 16-bit values and so point to page zero addresses only. after a reset the ram contents are indeterminate. v dd r c rst xa some typical values for r and c: r = 100k, c = 1.0 m f r = 1.0m, c = 0.1 m f (assuming that the v dd rise time is 1ms or less) su00702 figure 15. recommended reset circuit reset options the ea pin is sampled on the rising edge of the rst pulse, and determines whether the device is to begin execution from internal or external code memory. ea pulled high configures the xa in single-chip mode. if ea is driven low, the device enters romless mode. after reset is released, the ea /wait pin becomes a bus wait signal for external bus transactions. the busw/p3.5 pin is weakly pulled high while reset is asserted, allowing simple biasing of the pin with a resistor to ground to select the alternate bus width. if the busw pin is not driven at reset, the weak pullup will cause a 1 to be loaded for the bus width, giving a 16-bit external bus. busw may be pulled low with a 2.7k or smaller value resistor, giving an 8-bit external bus. the bus width setting from the busw pin may be overridden by software once the user program is running. both ea and busw must be held for three oscillator clock times after reset is deasserted to guarantee that their values are latched correctly. power reduction modes the xa-g37 supports idle and power down modes of power reduction. the idle mode leaves some peripherals running to allow them to wake up the processor when an interrupt is generated. the power down mode stops the oscillator in order to minimize power. the processor can be made to exit power down mode via reset or one of the external interrupt inputs. in order to use an external interrupt to re-activate the xa while in power down mode, the external interrupt must be enabled and be configured to level sensitive mode. in power down mode, the power supply voltage may be reduced to the ram keep-alive voltage (2 v), retaining the ram, register, and sfr values at the point where the power down mode was entered.
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 20 interrupts the xa-g37 supports 38 vectored interrupt sources. these include 9 maskable event interrupts, 7 exception interrupts, 16 trap interrupts, and 7 software interrupts. the maskable interrupts each have 8 priority levels and may be globally and/or individually enabled or disabled. the xa defines four types of interrupts: ? exception interrupts these are system level errors and other very important occurrences which include stack overflow, divide-by-0, and reset. ? event interrupts these are peripheral interrupts from devices such as uarts, timers, and external interrupt inputs. ? software interrupts these are equivalent of hardware interrupt, but are requested only under software control. ? trap interrupts these are trap instructions, generally used to call system services in a multi-tasking system. exception interrupts, software interrupts, and trap interrupts are generally standard for xa derivatives and are detailed in the xa user guide . event interrupts tend to be different on different xa derivatives. the xa-g37 supports a total of 9 maskable event interrupt sources (for the various xa peripherals), seven software interrupts, 5 exception interrupts (plus reset), and 16 traps. the maskable event interrupts share a global interrupt disable bit (the ea bit in the iel register) and each also has a separate individual interrupt enable bit (in the iel or ieh registers). only three bits of the ipa register values are used on the xa-g3. each event interrupt can be set to occur at one of 8 priority levels via bits in the interrupt priority (ip) registers, ipa0 through ipa5. the value 0 in the ipa field gives the interrupt priority 0, in effect disabling the interrupt. a value of 1 gives the interrupt a priority of 9, the value 2 gives priority 10, etc. the result is the same as if all four bits were used and the top bit set for all values except 0. details of the priority scheme may be found in the xa user guide. the complete interrupt vector list for the xa-g3, including all 4 interrupt types, is shown in the following tables. the tables include the address of the vector for each interrupt, the related priority register bits (if any), and the arbitration ranking for that interrupt source. the arbitration ranking determines the order in which interrupts are processed if more than one interrupt of the same priority occurs simultaneously. table 5. interrupt vectors exception/traps precedence description vector address arbitration ranking reset (h/w, watchdog, s/w) 00000003 0 (high) breakpoint (h/w trap 1) 00040007 1 trace (h/w trap 2) 0008000b 1 stack overflow (h/w trap 3) 000c000f 1 divide by 0 (h/w trap 4) 00100013 1 user reti (h/w trap 5) 00140017 1 trap 0 15 (software) 0040007f 1 event interrupts description flag bit vector address enable bit interrupt priority arbitration ranking external interrupt 0 ie0 00800083 ex0 ipa0.20 (px0) 2 timer 0 interrupt tf0 00840087 et0 ipa0.64 (pt0) 3 external interrupt 1 ie1 0088008b ex1 ipa1.20 (px1) 4 timer 1 interrupt tf1 008c008f et1 ipa1.64 (pt1) 5 timer 2 interrupt tf2(exf2) 00900093 et2 ipa2.20 (pt2) 6 serial port 0 rx ri.0 00a000a3 eri0 ipa4.20 (prio) 7 serial port 0 tx ti.0 00a400a7 eti0 ipa4.64 (ptio) 8 serial port 1 rx ri.1 00a800ab eri1 ipa5.20 (prt1) 9 serial port 1 tx ti.1 00ac00af eti1 ipa5.64 (pti1) 10 software interrupts description flag bit vector address enable bit interrupt priority software interrupt 1 swr1 01000103 swe1 (fixed at 1) software interrupt 2 swr2 01040107 swe2 (fixed at 2) software interrupt 3 swr3 0108010b swe3 (fixed at 3) software interrupt 4 swr4 010c010f swe4 (fixed at 4) software interrupt 5 swr5 01100113 swe5 (fixed at 5) software interrupt 6 swr6 01140117 swe6 (fixed at 6) software interrupt 7 swr7 0118011b swe7 (fixed at 7)
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 21 absolute maximum ratings parameter rating unit operating temperature under bias 55 to +125 c storage temperature range 65 to +150 c voltage on ea /v pp pin to v ss 0 to +13.0 v voltage on any other pin to v ss 0.5 to v dd +0.5 v v maximum i ol per i/o pin 15 ma power dissipation (based on package heat transfer limitations, not device power consumption) 1.5 w dc electrical characteristics v dd = 2.7 v to 5.5 v unless otherwise specified; v dd = t amb = 0 to 70 c for commercial, 40 c to +85 c for industrial, unless otherwise specified. symbol parameter test conditions limits unit symbol parameter test conditions min typ max unit supplies i dd supply current operating 9,10 f osc = 30 mhz 60 80 ma i id idle mode supply current 9,10 f osc = 30 mhz 22 30 ma i pd power-down current 15 100 a i pdi power-down current (40 c to +85 c) 150 a v ram ram-keep-alive voltage ram-keep-alive voltage 1.5 v v il input low voltage 0.5 0.22 v dd v v ih in p ut high voltage exce p t xtal1 rst at 5.0 v 2.2 v v ih in ut high voltage , exce t xtal1 , rst at 3.3 v 2 v v ih1 input high voltage to xtal1, rst for both 3.0 & 5.0 v 0.7 v dd v v ol out p ut low voltage all p orts ale psen 3 i ol = 3.2ma, v dd = 5.0 v 0.5 v v ol out ut low voltage all orts , ale , psen 3 1.0ma, v dd = 3.0 v 0.4 v v oh1 out p ut high voltage all p orts ale psen 1 i oh = 100 a, v dd = 4.5 v 2.4 v v oh1 out ut high voltage all orts , ale , psen 1 i oh = 15 a, v dd = 2.7 v 2.0 v v oh2 out p ut high voltage p orts p03 ale psen 2 i oh = 3.2ma, v dd = 4.5 v 2.4 v v oh2 out ut high voltage , orts p0 3 , ale , psen 2 i oh = 1ma, v dd = 2.7 v 2.2 v c io input/output pin capacitance 15 pf i il logical 0 input current, p03 6 v in = 0.45 v 25 75 a i li input leakage current, p03 5 v in = v il or v ih 10 a i tl logical 1 to 0 transition current all ports 4 at 5.5 v 650 a notes: 1. ports in quasi bi-directional mode with weak pull-up (applies to ale, psen only during reset). 2. ports in push-pull mode, both pull-up and pull-down assumed to be same strength 3. in all output modes 4. port pins source a transition current when used in quasi-bidirectional mode and externally driven from 1 to 0. this current i s highest when v in is approximately 2 v. 5. measured with port in high impedance output mode. 6. measured with port in quasi-bidirectional output mode. 7. load capacitance for all outputs=80 pf. 8. under steady state (non-transient) conditions, i ol must be externally limited as follows: maximum i ol per port pin: 15 ma (*note: this is 85 c specification for v dd = 5 v.) maximum i ol per 8-bit port: 26 ma maximum total i ol for all output: 71 ma if i ol exceeds the test condition, v ol may exceed the related specification. pins are not guaranteed to sink current greater than the listed test conditions. 9. see figures 25, 26, 29, and 30 for i dd test conditions, and figures 27 and 28 for i cc vs. frequency. max. 5 v active i dd = (fosc * 1.77 ma) + 7 ma max. 5 v idle i dd = (fosc * 0.87 ma) + 4 ma max. 3 v active i dd = (fosc * 0.77 ma) + 7 ma max. 3 v idle i dd = (fosc * 0.54 ma) + 4 ma 10. v ddmin = 2.85 v for operating at f osc = 30 mhz and 40 c to +85 c
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 22 ac electrical characteristics v dd = 2.7 v to 5.5 v; t amb = 0 to +70 c for commercial, 40 c to +85 c for industrial. symbol figure parameter variable clock unit symbol figure parameter min max unit external clock f c oscillator frequency all devices except PXAG37kfx 0 30 mhz PXAG37kfx v dd = 2.85 v to 5.5 v 0 30 mhz t amb = 40 c to +85 c v dd = 2.7 v to 2.85 v 0 25 mhz t c 22 clock period and cpu timing cycle 1/f c ns t chcx 22 clock high time t c * 0.5 ns t clcx 22 clock low time t c * 0.4 ns t clch 22 clock rise time 5 ns t chcl 22 clock fall time 5 ns ac electrical characteristics (v dd = 4.5 v to 5.5 v) t amb = 0 to +70 c for commercial, 40 c to +85 c for industrial. symbol figure parameter variable clock unit symbol figure parameter min max unit address cycle t crar 21 delay from clock rising edge to ale rising edge 10 46 ns t lhll 16 ale pulse width (programmable) (v1 * t c ) 6 ns t avll 16 address valid to ale de-asserted (set-up) (v1 * t c ) 12 ns t llax 16 address hold after ale de-asserted (t c /2) 10 ns code read cycle t plph 16 psen pulse width (v2 * t c ) 10 ns t llpl 16 ale de-asserted to psen asserted (t c /2) 7 ns t aviva 16 address valid to instruction valid, ale cycle (access time) (v3 * t c ) 36 ns t avivb 17 address valid to instruction valid, non-ale cycle (access time) (v4 * t c ) 29 ns t pliv 16 psen asserted to instruction valid (enable time) (v2 * t c ) 29 ns t pxix 16 instruction hold after psen de-asserted 0 ns t pxiz 16 bus 3-state after psen de-asserted (disable time) t c 8 ns t ixua 16 hold time of unlatched part of address after instruction latched 0 ns data read cycle t rlrh 18 rd pulse width (v7 * t c ) 10 ns t llrl 18 ale de-asserted to rd asserted (t c /2) 7 ns t avdva 18 address valid to data input valid, ale cycle (access time) (v6 * t c ) 36 ns t avdvb 19 address valid to data input valid, non-ale cycle (access time) (v5 * t c ) 29 ns t rldv 18 rd low to valid data in, enable time (v7 * t c ) 29 ns t rhdx 18 data hold time after rd de-asserted 0 ns t rhdz 18 bus 3-state after rd de-asserted (disable time) t c 8 ns t dxua 18 hold time of unlatched part of address after data latched 0 ns data write cycle t wlwh 20 wr pulse width (v8 * t c ) 10 ns t llwl 20 ale falling edge to wr asserted (v12 * t c ) 10 ns t qvwx 20 data valid before wr asserted (data setup time) (v13 * t c ) 22 ns t whqx 20 data hold time after wr de-asserted (note 6) (v11 * t c ) 5 ns t avwl 20 address valid to wr asserted (address setup time) (note 5) (v9 * t c ) 22 ns t uawh 20 hold time of unlatched part of address after wr is de-asserted (v11 * t c ) 7 ns wait input t wth 21 wait stable after bus strobe (rd , wr , or psen ) asserted (v10 * t c ) 30 ns t wtl 21 wait hold after bus strobe (rd , wr , or psen ) assertion (v10 * t c ) 5 ns notes on page 23.
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 23 ac electrical characteristics (v dd = 2.7 v to 4.5 v) t amb = 0 to +70 c for commercial, 40 c to +85 c for industrial. symbol figure parameter variable clock unit symbol figure parameter min max unit address cycle t crar 21 delay from clock rising edge to ale rising edge 15 60 ns t lhll 16 ale pulse width (programmable) (v1 * t c ) 10 ns t avll 16 address valid to ale de-asserted (set-up) (v1 * t c ) 18 ns t llax 16 address hold after ale de-asserted (t c /2) 12 ns code read cycle t plph 16 psen pulse width (v2 * t c ) 12 ns t llpl 16 ale de-asserted to psen asserted (t c /2) 9 ns t aviva 16 address valid to instruction valid, ale cycle (access time) (v3 * t c ) 58 ns t avivb 17 address valid to instruction valid, non-ale cycle (access time) (v4 * t c ) 52 ns t pliv 16 psen asserted to instruction valid (enable time) (v2 * t c ) 52 ns t pxix 16 instruction hold after psen de-asserted 0 ns t pxiz 16 bus 3-state after psen de-asserted (disable time) t c 8 ns t ixua 16 hold time of unlatched part of address after instruction latched 0 ns data read cycle t rlrh 18 rd pulse width (v7 * t c ) 12 ns t llrl 18 ale de-asserted to rd asserted (t c /2) 9 ns t avdva 18 address valid to data input valid, ale cycle (access time) (v6 * t c ) 58 ns t avdvb 19 address valid to data input valid, non-ale cycle (access time) (v5 * t c ) 52 ns t rldv 18 rd low to valid data in, enable time (v7 * t c ) 52 ns t rhdx 18 data hold time after rd de-asserted 0 ns t rhdz 18 bus 3-state after rd de-asserted (disable time) t c 8 ns t dxua 18 hold time of unlatched part of address after data latched 0 ns data write cycle t wlwh 20 wr pulse width (v8 * t c ) 12 ns t llwl 20 ale falling edge to wr asserted (v12 * t c ) 10 ns t qvwx 20 data valid before wr asserted (data setup time) (v13 * t c ) 28 ns t whqx 20 data hold time after wr de-asserted (note 6) (v11 * t c ) 8 ns t avwl 20 address valid to wr asserted (address setup time) (note 5) (v9 * t c ) 28 ns t uawh 20 hold time of unlatched part of address after wr is de-asserted (v11 * t c ) 10 ns wait input t wth 21 wait stable after bus strobe (rd , wr , or psen ) asserted (v10 * t c ) 40 ns t wtl 21 wait hold after bus strobe (rd , wr , or psen ) assertion (v10 * t c ) 5 ns notes: 1. load capacitance for all outputs = 80 pf. 2. variables v1 through v13 reflect programmable bus timing, which is programmed via the bus timing registers (btrh and btrl). refer to the xa user guide for details of the bus timing settings. v1) this variable represents the programmed width of the ale pulse as determined by the alew bit in the btrl register. v1 = 0.5 if the alew bit = 0, and 1.5 if the alew bit = 1. v2) this variable represents the programmed width of the psen pulse as determined by the cr1 and cr0 bits or the cra1, cra0, and alew bits in the btrl register. for a bus cycle with no ale, v2 = 1 if cr1/0 = 00, 2 if cr1/0 = 01, 3 if cr1/0 = 10, and 4 if cr1/0 = 11. note that during burst mode code fetches, psen does not exhibit transitions at the boundaries of bus cycles. v2 still applies for the purpose of determining peripheral timing requirements. for a bus cycle with an ale, v2 = the total bus cycle duration (2 if cra1/0 = 00, 3 if cra1/0 = 01, 4 if cra1/0 = 10, and 5 if cra1/0 = 11) minus the number of clocks used by ale (v1 + 0.5). example: if cra1/0 = 10 and alew = 1, the v2 = 4 (1.5 + 0.5) = 2.
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 24 v3) this variable represents the programmed length of an entire code read cycle with ale. this time is determined by the cra1 and cra0 bits in the btrl register. v3 = the total bus cycle duration (2 if cra1/0 = 00, 3 if cra1/0 = 01, 4 if cra1/0 = 10, and 5 if cra1/0 = 11). v4) this variable represents the programmed length of an entire code read cycle with no ale. this time is determined by the cr1 and cr0 bits in the btrl register. v4 = 1 if cr1/0 = 00, 2 if cr1/0 = 01, 3 if cr1/0 = 10, and 4 if cr1/0 = 11. v5) this variable represents the programmed length of an entire data read cycle with no ale. this time is determined by the dr1 and dr0 bits in the btrh register. v5 = 1 if dr1/0 = 00, 2 if dr1/0 = 01, 3 if dr1/0 = 10, and 4 if dr1/0 = 11. v6) this variable represents the programmed length of an entire data read cycle with ale. the time is determined by the dra1 and dra0 bits in the btrh register. v6 = the total bus cycle duration (2 if dra1/0 = 00, 3 if dra1/0 = 01, 4 if dra1/0 = 10, and 5 if dra1/0 = 11). v7) this variable represents the programmed width of the rd pulse as determined by the dr1 and dr0 bits or the dra1, dra0 in the btrh register, and the alew bit in the btrl register. note that during a 16-bit operation on an 8-bit external bus, rd remains low and does not exhibit a transition between the first and second byte bus cycles. v7 still applies for the purpose of determining peripheral timing requirements. the timing for the first byte is for a bus cycle with ale, the timing for the second byte is fo r a bus cycle with no ale. for a bus cycle with no ale, v7 = 1 if dr1/0 = 00, 2 if dr1/0 = 01, 3 if dr1/0 = 10, and 4 if dr1/0 = 11. for a bus cycle with an ale, v7 = the total bus cycle duration (2 if dra1/0 = 00, 3 if dra1/0 = 01, 4 if dra1/0 = 10, and 5 if dra1/0 = 11) minus the number of clocks used by ale (v1 + 0.5). example: if dra1/0 = 00 and alew = 0, then v7 = 2 (0.5 + 0.5) = 1. v8) this variable represents the programmed width of the wrl and/or wrh pulse as determined by the wm1 bit in the btrl register. v8 1 if wm1 = 0, and 2 if wm1 = 1. v9) this variable represents the programmed address setup time for a write as determined by the data write cycle duration (defin ed by dw1 and dw0 or the dwa1 and dwa0 bits in the btrh register), the wm0 bit in the btrl register, and the value of v8. for a bus cycle with an ale, v9 = the total bus write cycle duration (2 if dwa1/0 = 00, 3 if dwa1/0 = 01, 4 if dwa1/0 = 10, and 5 if dwa1/0 = 11) minus the number of clocks used by the wrl and/or wrh pulse (v8), minus the number of clocks used by data hold time (0 if wm0 = 0 and 1 if wm0 = 1). example: if dwa1/0 = 10, wm0 = 1, and wm1 = 1, then v9 = 4 1 2 = 1. for a bus cycle with no ale, v9 = the total bus cycle duration (2 if dw1/0 = 00, 3 if dw1/0 = 01, 4 if dw1/0 = 10, and 5 if dw1/0 = 11) minus the number of clocks used by the wrl and/or wrh pulse (v8), minus the number of clocks used by data hold time (0 if wm0 = 0 and 1 if wm0 = 1). example: if dw1/0 = 11, wm0 = 1, and wm1 = 0, then v9 = 5 1 1 = 3. v10) this variable represents the length of a bus strobe for calculation of wait setup and hold times. the strobe may be rd (for data read cycles), wrl and/or wrh (for data write cycles), or psen (for code read cycles), depending on the type of bus cycle being widened by wait. v10 = v2 for wait associated with a code read cycle using psen . v10 = v8 for a data write cycle using wrl and/or wrh . v10 = v71 for a data read cycle using rd . this means that a single clock data read cycle cannot be stretched using wait. if wait is used to vary the duration of data read cycles, the rd strobe width must be set to be at least two clocks in duration. also see note 4. v11) this variable represents the programmed write hold time as determined by the wm0 bit in the btrl register. v11 = 0 if the wm0 bit = 0, and 1 if the wm0 bit = 1. v12) this variable represents the programmed period between the end of the ale pulse and the beginning of the wrl and/or wrh pulse as determined by the data write cycle duration (defined by the dwa1 and dwa0 bits in the btrh register), the wm0 bit in the btr l register, and the values of v1 and v8. v12 = the total bus cycle duration (2 if dwa1/0 = 00, 3 if dwa1/0 = 01, 4 if dwa1/0 = 10 , and 5 if dwa1/0 = 11) minus the number of clocks used by the wrl and/or wrh pulse (v8), minus the number of clocks used by data hold time (0 if wm0 = 0 and 1 if wm0 = 1), minus the width of the ale pulse (v1). example: if dwa1/0 = 11, wm0 = 1, wm1 = 0, and alew = 1, then v12 = 5 1 1 1.5 = 1.5. v13) this variable represents the programmed data setup time for a write as determined by the data write cycle duration (defined by dw1 and dw0 or the dwa1 and dwa0 bits in the btrh register), the wm0 bit in the btrl register, and the values of v1 and v8. for a bus cycle with an ale, v13 = the total bus cycle duration (2 if dwa1/0 = 00, 3 if dwa1/0 = 01, 4 if dwa1/0 = 10, and 5 if dwa1/0 = 11) minus the number of clocks used by the wrl and/or wrh pulse (v8), minus the number of clocks used by data hold time (0 if wm0 = 0 and 1 if wm0 = 1), minus the number of clocks used by ale (v1 + 0.5). example: if dwa1/0 = 11, wm0 = 1, wm1 = 1, and alew = 0, then v13 = 5 1 2 1 = 1. for a bus cycle with no ale, v13 = the total bus cycle duration (2 if dw1/0 = 00, 3 if dw1/0 = 01, 4 if dw1/0 = 10, and 5 if dw1/0 = 11) minus the number of clocks used by the wrl and/or wrh pulse (v8), minus the number of clocks used by data hold time (0 if wm0 = 0 and 1 if wm0 = 1). example: if dw1/0 = 01, wm0 = 1, and wm1 = 0, then v13 = 3 1 1 = 1. 3. not all combinations of bus timing configuration values result in valid bus cycles. please refer to the xa user guide section on the external bus for details. 4. when code is being fetched for execution on the external bus, a burst mode fetch is used that does not have psen edges in every fetch cycle. thus, if wait is used to delay code fetch cycles, a change in the low order address lines must be detected to locate the beginning of a cycle. this would be a3a0 for an 8-bit bus, and a3a1 for a 16-bit bus. also, a 16-bit data read operation conducted on a 8- bit wide bus similarly does not include two separate rd strobes. so, a rising edge on the low order address line (a0) must be used to trigger a wait in the second half of such a cycle. 5. this parameter is provided for peripherals that have the data clocked in on the falling edge of the wr strobe. this is not usually the case, and in most applications this parameter is not used. 6. please note that the xa-g37 requires that extended data bus hold time (wm0 = 1) to be used with external bus write cycles.
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 25 t pxiz ale psen multiplexed address and data unmultiplexed address a1a3 t avll t pxix t llax instr in * t lhll t plph t plaz t llpl t aviva su00946 t pliv a4a19 t ixua * d0d15 figure 16. external program memory read cycle (ale cycle) ale psen multiplexed address and data unmultiplexed address a0 or a1a3, a1219 instr in * su00707 a4a11 or a4a19 t avivb * instr in is either d0d7 or d0d15, depending on the bus width (8 or 16 bits). a0 or a1a3, a1219 figure 17. external program memory read cycle (non-ale cycle)
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 26 ale multiplexed address and data unmultiplexed address rd data in * a4a11 or a4a19 a0 or a1a3, a12a19 t llrl t rlrh t llax t avll t rhdx t rhdz t avdva t rldv su00947 t dxua * data in is either d0d7 or d0d15, depending on the bus width (8 or 16 bits). figure 18. external data memory read cycle (ale cycle) ale multiplexed address and data unmultiplexed address rd d0d7 a4a11 a0a3, a12a19 su00708a t avdvb a0a3, a12a19 data in * figure 19. external data memory read cycle (non-ale cycle) 8 bit bus only
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 27 t uawh t llax ale multiplexed address and data unmultiplexed address wrl or wrh a4a11 or a4a15 data out * a0 or a1a3, a12a19 t llwl t wlwh t avll t avwl t qvwx t whqx su00584c * data out is either d0d7 or d0d15, depending on the bus width (8 or 16 bits). figure 20. external data memory write cycle xtal1 address bus wait su00709a t wtl ale bus strobe (wrl , wrh , rd , or psen ) t wth t crar (the dashed line shows the strobe without wait.) figure 21. wait signal timing
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 28 v dd 0.5 0.45v 0.7v dd 0.2v dd 0.1 t chcl t c t clch t clcx t chcx su00842 figure 22. external clock drive v dd 0.5 0.45v 0.2v dd +0.9 0.2v dd 0.1 note: ac inputs during testing are driven at v dd 0.5 for a logic `1' and 0.45v for a logic `0'. timing measurements are made at the 50% point of transitions. su00703a figure 23. ac testing input/output v load v load +0.1v v load 0.1v v oh 0.1v v ol +0.1v note: timing reference points for timing purposes, a port is no longer floating when a 100mv change from load voltage occurs, and begins to float when a 100mv change from the loaded v oh /v ol level occurs. i oh /i ol 20ma. su00011 figure 24. float waveform v dd ea rst xtal1 xtal2 v ss v dd (nc) clock signal su00591b figure 25. i dd test condition, active mode all other pins are disconnected v dd ea rst xtal1 xtal2 v ss v dd (nc) clock signal su00590b v dd figure 26. i dd test condition, idle mode all other pins are disconnected
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 29 su01661 60 50 40 30 20 10 0 0 5 10 15 20 25 30 typical i dd (active) max. i dd (idle) typical i dd (idle) frequency ma 70 80 max. i dd (active) figure 27. i dd vs. frequency at v dd = 5.0 v su01193 30 25 20 15 10 5 0 0 5 10 15 20 25 30 max. i dd (active) typical i dd (active) max. i dd (idle) typical i dd (idle) frequency ma figure 28. i dd vs. frequency at v dd = 3.0 v
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 30 v dd 0.5 0.45v 0.7v dd 0.2v dd 0.1 t chcl t cl t clch t clcx t chcx su00608a figure 29. clock signal waveform for i dd tests in active and idle modes t clch = t chcl = 5ns v dd ea rst xtal1 xtal2 v ss (nc) su00585a v dd v dd figure 30. i dd test condition, power down mode all other pins are disconnected. v dd =2 v to 5.5 v
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 31 eprom characteristics the xa-g37 is programmed by using a modified improved quick-pulse programming ? algorithm. this algorithm is essentially the same as that used by the later 80c51 family eprom parts. however different pins are used for many programming functions. detailed eprom programming information may be obtained from the internet at www.philipsmcu.com/ftp.html. the xa-g37 contains three signature bytes that can be read and used by an eprom programming system to identify the device. the signature bytes identify the device as an xa-gx manufactured by philips. security bits with none of the security bits programmed the code in the program memory can be verified. when only security bit 1 (see table 6) is programmed, movc instructions executed from external program memory are disabled from fetching code bytes from the internal memory. all further programming of the eprom is disabled. when security bits 1 and 2 are programmed, in addition to the above, verify mode is disabled. when all three security bits are programmed, all of the conditions above apply and all external program memory execution is disabled. (see table 6) table 6. program security bits program lock bits sb1 sb2 sb3 protection description 1 u u u no program security features enabled. 2 p u u movc instructions executed from external program memory are disabled from fetching code bytes from internal memory and further programming of the eprom is disabled. 3 p p u same as 2, also verify is disabled. 4 p p p same as 3, external execution is disabled. internal data ram is not accessible. notes: 1. p programmed. u unprogrammed. 2. any other combination of the security bits is not defined. ? trademark phrase of intel corporation.
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 32 lqfp44: plastic low profile quad flat package; 44 leads; body 10 x 10 x 1.4 mm sot389-1
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 33 plcc44: plastic leaded chip carrier; 44 leads sot187-2
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 34 revision history date cpcn description 2002 mar 25 9397 750 09585 deleted information for xa-g33 spun off xa-g30 into a separate data sheet corrected figure 27 (i dd vs. frequency) corrected typical power down current to 15 m a 2001 jun 25 9397 750 08554 previous release
philips semiconductors product data xa-g37 xa 16-bit microcontroller family 32k otp, 512 b ram, watchdog, 2 uarts 2002 mar 25 35 definitions short-form specification e the data in a short-form specification is extracted from a full data sheet with the same type number and title. for detailed information see the relevant data sheet or data handbook. limiting values definition e limiting values given are in accordance with the absolute maximum rating system (iec 60134). stress above one or more of the limiting values may cause permanent damage to the device. these are stress ratings only and operation of the dev ice at these or at any other conditions above those given in the characteristics sections of the specification is not implied. exposure to limi ting values for extended periods may affect device reliability. application information e applications that are described herein for any of these products are for illustrative purposes only. philips semiconductors make no representation or warranty that such applications will be suitable for the specified use without further testing or modification. disclaimers life support e these products are not designed for use in life support appliances, devices or systems where malfunction of these products can reasonably be expected to result in personal injury. philips semiconductors customers using or selling these products for use i n such applications do so at their own risk and agree to fully indemnify philips semiconductors for any damages resulting from such application. right to make changes e philips semiconductors reserves the right to make changes, without notice, in the products, including circuits, standard cells, and/or software, described or contained herein in order to improve design and/or performance. philips semiconductors ass umes no responsibility or liability for the use of any of these products, conveys no license or title under any patent, copyright, or m ask work right to these products, and makes no representations or warranties that these products are free from patent, copyright, or mask work right in fringement, unless otherwise specified. contact information for additional information please visit http://www.semiconductors.philips.com . fax: +31 40 27 24825 for sales offices addresses send e-mail to: sales.addresses@www.semiconductors.philips.com . ? koninklijke philips electronics n.v. 2002 all rights reserved. printed in u.s.a. date of release: 03-02 document order number: 9397 750 09585  

data sheet status [1] objective data preliminary data product data product status [2] development qualification production definitions this data sheet contains data from the objective specification for product development. philips semiconductors reserves the right to change the specification in any manner without notice. this data sheet contains data from the preliminary specification. supplementary data will be published at a later date. philips semiconductors reserves the right to change the specification without notice, in order to improve the design and supply the best possible product. this data sheet contains data from the product specification. philips semiconductors reserves the right to make changes at any time in order to improve the design, manufacturing and supply. changes will be communicated according to the customer product/process change notification (cpcn) procedure snw-sq-650a. data sheet status [1] please consult the most recently issued data sheet before initiating or completing a design. [2] the product status of the device(s) described in this data sheet may have changed since this data sheet was published. the l atest information is available on the internet at url http://www.semiconductors.philips.com.


▲Up To Search▲   

 
Price & Availability of PXAG37

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X